// index.js

Page({
  
    data: {
      banners: [{
                 'src': '../../static/photos/轮播图1.jpg'
             },
             {
                 'src': '../../static/photos/轮播图2.jpg'
             },
             {
                 'src': '../../static/photos/轮播图3.jpg'
             },
           ],
       indicatorDots: true,
       vertical: false,
       autoplay: true,
       interval: 2000,
       duration: 500,
       circular: true,
       show: true,
     
   },
  //  buttons(events){
  //    wx.navigateTo({
  //      url: '/pages/clock/clock',
  //      events: events,
  //      routeType: 'routeType',
  //      success: (result) => {},
  //      fail: (res) => {},
  //      complete: (res) => {},
  //    })
  //  }
  // getUserInfo(event) {
  //   console.log(event.detail);
  // },

  onClose() {
    this.setData({ show: false });
  },
  onOpen(events){
    this.setData({ show: true });
  }
})
